/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class BabyBottleSterilizer {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050057';
    }

    get categoryName() {
        return '\u5a74\u513f\u6d88\u6bd2\u67dc';
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pUPQLHG5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pZgRrvdm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pGoxpNBP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'peH3by9K',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'ppAX3iol',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default BabyBottleSterilizer;
